<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript">
//<!CDATA[
$(function(){
    $('#share_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        rules : {
            title : {
                required : true,
                maxlength: 100
            },
            link  : {
                required : true
            },
            sort_order : {
                number   : true
            }
        },
        messages : {
            title : {
                required : '运单服务项不能为空',
                maxlength: 'title_maxlength_error'
            },
            link  : {
                required : '单位名称不能为空'
            },
            sort_order  : {
                number   : '只允许填写数字'
            }
        }
    });
});
//]]>
</script>
<div id="rightTop">
    <p>分享链接</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=kd_fuwu">管理</a></li>
        <?php if ($this->_var['share']['share_id']): ?>
        <li><a class="btn1" href="index.php?app=kd_fuwu&amp;act=add">新增</a></li>
        <?php else: ?>
        <li><span>新增</span></li>
        <?php endif; ?>
    </ul>
</div>

<div class="info">
    <form method="post" enctype="multipart/form-data" id="share_form">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">运单服务项:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" id="title" type="text" name="title" value="<?php echo htmlspecialchars($this->_var['share']['title']); ?>" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15">服务金额:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" id="amount" type="text" name="amount" value="<?php echo htmlspecialchars($this->_var['share']['amount']); ?>">
                </td>
            </tr>            
            <tr>
                <th class="paddingT15">
                    单位名称:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" id="link" type="text" name="link" value="<?php echo htmlspecialchars($this->_var['share']['link']); ?>">
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="type">币种:</label></th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" id="type" type="text" name="type" value="<?php echo htmlspecialchars($this->_var['share']['type']); ?>"></td>
            </tr>
            <tr>
                <th class="paddingT15">
                    排序:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="sort_order" id="sort_order" type="text" name="sort_order" value="<?php echo $this->_var['share']['sort_order']; ?>" />
                </td>
            </tr>
        <tr>
            <th></th>
            <td class="ptb20">
                <input class="formbtn" type="submit" name="Submit" value="提交" />
                <input class="formbtn" type="reset" name="Submit2" value="重置" />
            </td>
        </tr>
        </table>
    </form>
</div>
<?php echo $this->fetch('footer.html'); ?>
